Skip to main content

All Questions

Tagged with
0votes
0answers
78views

Creating a script which compares the return value from an AT command

I am trying to write a shell script that can save the output of a piped process to a variable. This variable is then compared to a known string in order to discern whether or not my AT modem is ...
adamsthename's user avatar
3votes
2answers
4kviews

Using pipe STDOUT as a variable?

Fairly new to Bash, about a grueling week. I love it so far and really like long chaining pipes. What I'm noticing though is that I have to break the pipe if I need to use the STDOUT as a variable. ...
Proximo's user avatar
3votes
3answers
8kviews

How to echo a substring from the output of a pipe?

I found here how to extract a substring in bash, but I'm lost as to how to apply this after a pipe. For instance: some func | echo ${string:12:5} How do I assign the output of some func to the ...
Michael Hays's user avatar
1vote
2answers
2kviews

Howto split stdin into multiple multiline strings and put each of them into different bash variables

I'm searching for a possibility to send via pipe several multiline strings to a bash script and grab each of them within this script. Finally, I want to store each multiline string into its own ...
playmobox's user avatar

close